package cqrtplm.entity;

import cqrtplm.log.ObjectComparator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.sql.Timestamp;

@Data
@Entity
@Table(name = "RT_CERT_FILED_RATOMODELS")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "机型认证清单实体类")
public class RtCertFiledRatoModelsDO {

    @Id
    @Column(name = "ID", length = 100, nullable = false)
    @ApiModelProperty(value = "主键ID")
    private String id;

    @Column(name = "DEVCODE", length = 400, nullable = false)
    @ApiModelProperty(value = "开发令", required = true)
    private String devCode;

    @Column(name = "FILEDID", length = 100)
    @ApiModelProperty(value = "关联主表ID")
    private String filedId;

    @Column(name = "CREATEUSERID", length = 100)
    @ApiModelProperty(value = "创建人ID")
    private String createUserId;

    @Column(name = "CREATEUSERNAME", length = 100)
    @ApiModelProperty(value = "创建人")
    @ObjectComparator.RTIgnore
    private String createUserName;

    @Column(name = "CREATETIME")
    @ApiModelProperty(value = "创建时间")
    @ObjectComparator.RTIgnore
    private Timestamp createTime;

    @Column(name = "UPDATEUSERID", length = 100)
    @ApiModelProperty(value = "更新人ID")
    @ObjectComparator.RTIgnore
    private String updateUserId;

    @Column(name = "UPDATEUSERNAME", length = 100)
    @ApiModelProperty(value = "更新人")
    @ObjectComparator.RTIgnore
    private String updateUserName;

    @Column(name = "UPDATETIME")
    @ApiModelProperty(value = "更新时间")
    @ObjectComparator.RTIgnore
    private Timestamp updateTime;
}